<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if (count($l_meta_name)): ?>
    <?php foreach ($l_meta_name as $key => $value): ?>
	<meta name="<?php echo $key; ?>" content="<?php echo $value; ?>"/>
    <?php endforeach; ?>
<?php endif; ?>
<?php if (count($l_meta_http_equiv)): ?>
    <?php foreach ($l_meta_http_equiv as $key => $value): ?>
	<meta http-equiv="<?php echo $key; ?>" content="<?php echo $value; ?>"/>
    <?php endforeach; ?>
<?php endif; ?>
<title><?php echo $l_title; ?></title>
<script type="text/javascript">
<?php
if (count($l_javascript_variables)) {
    foreach ($l_javascript_variables as $key => $value) {
	echo "window.{$key} = '{$value}';";
    }
}
?>
</script>
<?php if (count($l_javascripts)): ?>
    <?php foreach ($l_javascripts as $js): ?>
	<?php if (preg_match("/^http:\/\//", $js)): ?>
	    <script type="text/javascript" rel="" src="<?php echo $js; ?>.js"></script>
	<?php else: ?>
	    <script type="text/javascript" rel="" src="/assets/js/<?php echo $js; ?>.js"></script>
	<?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

<?php if (count($l_stylesheets)): ?>
    <?php foreach ($l_stylesheets as $css): ?>
	<link type="text/css" rel="stylesheet" href="/assets/css/<?php echo $css; ?>.css"/>
    <?php endforeach; ?>
<?php endif; ?>